package ch.hearc.infrarouge.models;

/**
 * Model that represents a reply from one user to another.
 * 
 * @author Nils Amiet
 * 
 */
public class Reply {

	private User replyFrom;
	private User replyTo;
	private ThreadMessage threadMessage;

	public Reply(User replyFrom, User replyTo, ThreadMessage threadMessage) {
		this.replyFrom = replyFrom;
		this.replyTo = replyTo;
		this.threadMessage = threadMessage;
	}

	@Override
	public String toString() {
		return "Reply from " + this.replyFrom + " to " + this.replyTo;
	}

	public User getReplyFrom() {
		return replyFrom;
	}

	public void setReplyFrom(User replyFrom) {
		this.replyFrom = replyFrom;
	}

	public User getReplyTo() {
		return replyTo;
	}

	public void setReplyTo(User replyTo) {
		this.replyTo = replyTo;
	}

	public ThreadMessage getThreadMessage() {
		return threadMessage;
	}

	public void setThreadMessage(ThreadMessage threadMessage) {
		this.threadMessage = threadMessage;
	}

}
